Skip to content

Add redirect from versioned link to stable - #489

Merged
fhennig merged 2 commits into
mainfrom
feat/stable-permalinks
Nov 27, 2023
Merged

Add redirect from versioned link to stable#489
fhennig merged 2 commits into
mainfrom
feat/stable-permalinks

Conversation

@fhennig

@fhennig fhennig commented Nov 27, 2023

Copy link
Copy Markdown
Contributor

Currently there is no way to link to the latest version by its actual version number, which is annoying. There is only the 'stable' link (i.e. https://docs.stackable.tech/home/stable/concepts/product_image_selection). Previous versions are linkable by their version number (i.e. https://docs.stackable.tech/home/23.4/concepts/product_image_selection).

This PR adds a redirect from the actual version to 'stable'.

Why redirect from the number to stable, and not the other way round? Where do URLs actually end up? Users might send each other links, they are just used in the moment and then the URL doesn't really matter. For bookmarking a URL, sometimes bookmarking a link that always points to the latest docs might be better, sometimes you might want a stable link. Both are possible, just the default would be to link 'stable'. The main reason is SEO - Google will index the 'stable' links, and when we release a new version, the pages will update, instead of google having to find the new version number. If a new version is released, google will find the now latest-1 version on a new indexing run and will index it too, but it will also update the 'stable' pages.

@fhennig fhennig changed the title Change redirect facility make 'stable' redirect to the actual version. Nov 27, 2023
@netlify

netlify Bot commented Nov 27, 2023

Copy link
Copy Markdown

Deploy Preview for stackable-docs ready!

Name Link
🔨 Latest commit 4b68ac3
🔍 Latest deploy log https://app.netlify.com/sites/stackable-docs/deploys/65647dcd0dcbaf0008ce3b1e
😎 Deploy Preview https://deploy-preview-489--stackable-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@fhennig fhennig changed the title make 'stable' redirect to the actual version. Add redirect from versioned link to stable Nov 27, 2023
@fhennig
fhennig marked this pull request as ready for review November 27, 2023 13:21

@vsupalov vsupalov left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Redirect results in 302s (moved temporarily), allows for stable external links to versions and otherwise should not interfere with existing content discoverability 👍 LGTM

@fhennig
fhennig added this pull request to the merge queue Nov 27, 2023
Merged via the queue into main with commit 72ec09b Nov 27, 2023
@fhennig
fhennig deleted the feat/stable-permalinks branch November 27, 2023 13:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants